package pl.edu.romanow.dispatch

import net.liftweb.http.LiftResponse
import net.liftweb.common.Box
import pl.edu.romanow.model.Facebook

/**
 * Created by IntelliJ IDEA.
 * User: jar
 * Date: 25.03.12
 * Time: 12:14
 * To change this template use File | Settings | File Templates.
 */


trait FacebookJob {

  val graphUrl = "https://graph.facebook.com"

  def createUrl(accessToken: String): String = ""
  /**
   * handles response
   * Empty means success Full(string) error
   * @param data
   * @return
   */
  def handleResponse(data: String): Box[String]

  def name: String

  def permission = FacebookDispatch.basicPermission
}